﻿using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Util;
using System;
using System.ComponentModel;


namespace HX.HxDemo.BOS.Business.PlugIn250116001
{
    [Description("【表单插件】 AfterCreateNewData"),HotUpdate]
    public class AfterCreateNewDataFormPlugIn : AbstractDynamicFormPlugIn
    {
        public override void AfterCreateNewData(EventArgs e)
        {
            base.AfterCreateNewData(e);
            //新建单据时，给字段设置默认值
            this.Model.DataObject["BillNo"] = Guid.NewGuid().ToString();
            this.Model.SetItemValueByNumber("FSupplierId", "VEN00002", 0);
        }
    }
}
